#include "_stdio.h"
#include <stdio.h>

int main()
{
   _FILE* fp = _fopen("log.txt","w");
    
   const char* msg = "hello Linux\n";
    int cnt = 10;
    while(cnt)
    {
        _fwrite(msg,strlen(msg),fp);
        sleep(1);
        printf("count:%d\n",cnt);
        --cnt;
    }
    _fclose(fp);
    return 0;
}
